let nodes = [];
let links = [];
for (let index = 0; index < 20; index++) {
    nodes.push({
        id: index,
        userData: {
            name: `table_${index}`
        },
        colors: ["skyblue"]
    });
    for (let subIndex = 0; subIndex < 5; subIndex++) {
        nodes.push({
            id: `${index}-${subIndex}`,
            userData: {
                name: `attribute_${subIndex}`
            },
            colors: ["purple"]
        });
        links.push({
            id: `links_${index}`,
            start: index,
            end: `${index}-${subIndex}`,
            type: "属性",
            source: index,
            target: `${index}-${subIndex}`,
            isShow: true
        });
    }
}
for (let index = 0; index < 10; index++) {
    let randomStart = Math.floor(Math.random() * 10);
    let randomEnd = Math.floor(Math.random() * 5);
    let obj = {
        0: "枚举",
        1: "映射",
        2: "依赖",
        3: "判断",
        4: "主键",
        5: "复健",
        6: "被选",
        7: "关联",
        8: "挂载",
        9: "关联"
    };
    links.push({
        id: `links_${randomStart}_${randomEnd}`,
        start: `${randomStart}-${randomEnd}`,
        end: randomEnd,
        type: obj[randomEnd],
        source: `${randomStart}-${randomEnd}`,
        target: randomEnd,
        isShow: true
    });
}
export default {
    nodes,
    links
};
